package com.zmn.mcc.common.constant;

/**
 * 类描述：
 *
 * @author zmn
 * @since 2022/07/19 9:30
 */
public class RoleChangeLogDict {

    /**
     * 日志类型
     */
    public final static int ROLE_CHANGE_LOG_TYPE_1 = 1;
    public final static int ROLE_CHANGE_LOG_TYPE_2 = 2;
    /**
     * 日志类型
     */
    public final static String ROLE_CHANGE_LOG_TYPE_1_STR = "编辑信息";
    public final static String ROLE_CHANGE_LOG_TYPE_2_STR = "编辑权限";

    public static String getRoleChangeLogName(Integer logType) {
        switch (logType) {
            case RoleChangeLogDict.ROLE_CHANGE_LOG_TYPE_1:
                return RoleChangeLogDict.ROLE_CHANGE_LOG_TYPE_1_STR;
            case RoleChangeLogDict.ROLE_CHANGE_LOG_TYPE_2:
                return RoleChangeLogDict.ROLE_CHANGE_LOG_TYPE_2_STR;
            default:
                return "-";
        }
    }

    public static String getRoleChangeLogFildName(String fild) {
        switch (fild) {
            case "roleName":
                return "角色名称";
            case "deptId":
                return "部门ID";
            case "exportLimit":
                return "数据导出上限";
            case "dayLimit":
                return "查询前溯天数";
            case "numberLimit":
                return "查询数据条数限制";
            case "remark":
                return "角色备注";
            default:
                return "-";
        }
    }
}
